//
//  OnLineProductModel.m
//  MyYiJianKangApp
//
//  Created by 张国文 on 16/4/27.
//  Copyright © 2016年 hangzhouyijiyin. All rights reserved.
//

#import "OnLineProductModel.h"

@implementation OnLineProductModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"description"]) {
        self.description1 = value;
    } else if ([key isEqualToString:@"goods"]) {
        
        self.price = [value[0] valueForKey:@"price"];
        self.promotion_price = [value[0] valueForKey:@"promotion_price"];
        self.is_promotion = [value[0] valueForKey:@"is_promotion"];
        self.shangPinID = [value[0] valueForKey:@"id"];
    } else if ([key isEqualToString:@"new_detail_url"]) {
        self.newdetail_url = value;
    } else if ([key isEqualToString:@"id"]) {
        self.myID = value;
    }
}




@end
